package com.team.mp.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 权限表(SysPermission)表实体类
 *
 * @author makejava
 * @since 2023-03-27 16:32:39
 */
@Data
@TableName("sys_permission")
public class SysPermission extends Model<SysPermission> {
    //id，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //权限或菜单名
    private String permName;
    //类型：1.菜单 2.权限
    private Integer type;
    //权限或菜单对应的组件名
    private String permTag;
    //菜单的页面url
    private String url;
    //菜单对应的图标
    private String icon;
    //菜单上一级的id
    private Integer parentid;
    //菜单的级别：1级 2级 3级
    private Integer level;
}

